package cn.jh.common.pay.utils;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.MoreObjects;
import org.jetbrains.annotations.NotNull;

import java.util.List;

/**
 * @author Yichuan
 * @version 1.0
 */
public class InBankCard extends InEntity {

    private static final long serialVersionUID = 2143205209594648139L;

    // 通道产品编码
    private String productCode;

    public InBankCard() {
        super();
    }

    @Override
    protected void applySign(@NotNull List<String> parts) {
        parts.add(getProductCode());
    }

    @JsonProperty("product_code")
    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    @Override
    protected void applyToString(MoreObjects.ToStringHelper tsh) {
        tsh.add("productCode", productCode);
    }
}
